package com.think.archive.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletResponse;

@Controller
public class MachineController {


    @RequestMapping("machine/getMac")
    @ResponseBody
    public String download(HttpServletResponse response) {
        return "{\"state\": \"0\", \"success\": true, \"data\": \"34-29-8F-90-C8-DC\", \"msg\": \"\"}";
    }

    @RequestMapping("sfz/read_data")
    @ResponseBody
    public String read_data(HttpServletResponse response) {
        return "{\"code\": \"0\",\"pName\": \"鲁泽亮\",\"pCertNo\":\"33060219910128101X\",\"base64Img\":\"\"}";
    }

    @RequestMapping("light/do_execute")
    @ResponseBody
    public String do_execute(HttpServletResponse response) {
        return "{\"code\": \"0\", \"msg\": \"函数调用成功\", \"type\": \"dengdai\"}";
    }

}
